/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.isd.pool.modelo;

import java.io.Serializable;
import javax.persistence.Embeddable;

/**
 *
 * @author ctrosch
 */
@Embeddable
public class ItemPickingPK implements Serializable {

    private int nrpool;    
    private int norden;

    public ItemPickingPK() {

    }

    public ItemPickingPK(int nrpool, int norden) {
        this.nrpool = nrpool;
        this.norden = norden;
    }

    public int getNorden() {
        return norden;
    }

    public void setNorden(int norden) {
        this.norden = norden;
    }

    public int getNrpool() {
        return nrpool;
    }

    public void setNrpool(int nrpool) {
        this.nrpool = nrpool;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final ItemPickingPK other = (ItemPickingPK) obj;
        if (this.nrpool != other.nrpool) {
            return false;
        }
        if (this.norden != other.norden) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 3;
        hash = 67 * hash + this.nrpool;
        hash = 67 * hash + this.norden;
        return hash;
    }

    @Override
    public String toString() {
        return "ItemPickingPK{" + "nrpool=" + nrpool + "norden=" + norden + '}';
    }
    

}
